/*
 * 铁路道岔故障检测信息管理系统
 * Design by 魏梓晟
 * Version :1.0
 */
package com.railway.switchs.domain.dto.business;

import java.io.Serializable;

import com.railway.switchs.domain.pojo.business.BaseDevicePojo;
import com.railway.switchs.enums.EnumDeviceType;
import com.railway.switchs.utils.StringUtil;
import lombok.Data;
/**
 * base_device - 基础设备型号表 实体类
 * 
 * @author 魏梓晟
 */
@Data
public class BaseDevice extends BaseDevicePojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public BaseDevice(){

    }

    public BaseDevice(Long id){
        this.setId(id);
    }

    private String deviceTypeDesc;

	public String getDeviceTypeDesc(){
        if(StringUtil.isEmpty(getDeviceType())){
            return "";
        }
        return EnumDeviceType.getName(getDeviceType());
    }
}
